package demo1210.am.amlianxi;

public class Demo_01 {
    public static void main(String[] args) {
        Fish fish = new Fish("红鲤鱼",1);
        Dog dog = new Dog("二哈",1);
        fish.eat();
        fish.sleep();
        fish.setAge(3);
        fish.show();

        System.out.println();

        dog.eat();
        dog.sleep();
        dog.show();
    }
}
